package com.itheima.variableparameter;

import java.util.*;

public class VariableParameterDemo4 {
    public static void main(String[] args) {
//        method1();
//        method2();
//        method3();
    }

    private static void method3() {
        Map<String, String> map = new HashMap<String, String>() {{
            put("zhangsan", "北京");
            put("lisi", "天津");
            put("wanger", "江苏");
        }};
//        map.put("aa", "bb");
        System.out.println(map);
    }

    private static void method2() {
        Set<String> set = new HashSet<>(Arrays.asList("aa", "bb", "cc", "dd", "ee", "aa"));
        System.out.println(set);
    }

    private static void method1() {
        ArrayList<String> list = new ArrayList<>(Arrays.asList("a", "b", "c", "d", "e"));
        System.out.println(list);
    }
}
